import request from '@/config/axios'

export const generateSalt = (name) => request({
    url: 'user_api/auth/token/salt',
    method: 'post',
    data: name
});

export const generateToken = (login) => request({
    url: 'user_api/auth/token/generate',
    method: 'post',
    data: login
});

export const checkTokenValid = (login) => request({
    url: 'user_api/auth/token/check',
    method: 'post',
    data: login
});

export const cancelToken = (name) => request({
    url: 'user_api/auth/token/cancel',
    method: 'post',
    data: name
});
